// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.text.method.ScrollingMovementMethod;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.*;
import com.nnee.p_img.cls_d;
import com.nnee.p_img.p_video.cls_a;
import com.nnee.p_imgex.cls_ImageViewScanActiivity;
import com.nnee.p_imgex.cls_ImageViewTouch;
import com.nnee.p_imgex.p_a.cls_b;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            ah, bp, bo, s

public class cls_PrisImageView extends FrameLayout
    implements cls_ah, cls_bp
{

    public PrisImageView(Context context)
    {
        super(context);
        d = -1;
        i = -1;
        b = true;
        c = true;
        o = new AlphaAnimation(1F, 0F);
        p = new AlphaAnimation(0F, 1F);
        q = new StringBuilder();
        a(context);
    }

    public PrisImageView(Context context, int i1, String s)
    {
        super(context);
        d = -1;
        i = -1;
        b = true;
        c = true;
        o = new AlphaAnimation(1F, 0F);
        p = new AlphaAnimation(0F, 1F);
        q = new StringBuilder();
        a(context);
    }

    public PrisImageView(Context context, AttributeSet attributeset)
    {
        super(context, attributeset);
        d = -1;
        i = -1;
        b = true;
        c = true;
        o = new AlphaAnimation(1F, 0F);
        p = new AlphaAnimation(0F, 1F);
        q = new StringBuilder();
        a(context);
    }

    static Bitmap a(cls_PrisImageView prisimageview, Bitmap bitmap)
    {
        prisimageview.l = bitmap;
        return bitmap;
    }

    static ImageViewTouch a(cls_PrisImageView prisimageview)
    {
        return prisimageview.f;
    }

    private void a(Context context)
    {
        e = context;
        l = null;
    }

    static StringBuilder b(cls_PrisImageView prisimageview)
    {
        return prisimageview.q;
    }

    static ProgressBar c(cls_PrisImageView prisimageview)
    {
        return prisimageview.m;
    }

    static Bitmap d(cls_PrisImageView prisimageview)
    {
        return prisimageview.l;
    }

    static Context e(cls_PrisImageView prisimageview)
    {
        return prisimageview.e;
    }

    static int f(cls_PrisImageView prisimageview)
    {
        return prisimageview.j;
    }

    static int g(cls_PrisImageView prisimageview)
    {
        return prisimageview.k;
    }

    static s h(cls_PrisImageView prisimageview)
    {
        return prisimageview.n;
    }

    static a i(cls_PrisImageView prisimageview)
    {
        return prisimageview.h;
    }

    private void j()
    {
        f = (ImageViewTouch)findViewById(0x7f0d003a);
        g = (TextView)findViewById(0x7f0d003c);
        g.setMovementMethod(new ScrollingMovementMethod());
        a = (ViewGroup)findViewById(0x7f0d003b);
        m = (ProgressBar)findViewById(0x7f0d003d);
        f.a(true);
    }

    public TextView a()
    {
        return g;
    }

    public Object a(int i1, int j1, Object obj)
    {
        if(100 != j1)
            this = null;
        return this;
    }

    public void a(float f1)
    {
        f.a(f1);
    }

    public void a(float f1, float f2)
    {
        if(f != null)
            f.a_(f1, f2);
    }

    public void a(int i1)
    {
        i = i1;
    }

    public void a(int i1, int j1)
    {
        j = i1;
        k = j1;
    }

    public void a(int i1, boolean flag)
    {
    }

    public void a(cls_a a1)
    {
        h = a1;
    }

    public void a(cls_b b1)
    {
        if(b1 != null)
            f.a(b1);
    }

    public void a(s s)
    {
        n = s;
    }

    public void a(boolean flag)
    {
        b(flag);
    }

    public boolean a(String s)
    {
        return false;
    }

    public void b(boolean flag)
    {
        o.setDuration(cls_ImageViewScanActiivity.f);
        p.setDuration(cls_ImageViewScanActiivity.f);
        if(flag)
        {
            g.setVisibility(0);
            a.setBackgroundColor(Color.argb(178, 0, 0, 0));
            a.setVisibility(0);
        } else
        {
            g.setVisibility(8);
            a.setBackgroundDrawable(null);
            a.setVisibility(8);
        }
    }

    public boolean b()
    {
        boolean flag;
        if(f.d() < f.f())
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean b(int i1, int j1, Object obj)
    {
        j1;
        JVM INSTR tableswitch 101 101: default 20
    //                   101 22;
           goto _L1 _L2
_L1:
        return true;
_L2:
        a(((Boolean)obj).booleanValue());
        if(true) goto _L1; else goto _L3
_L3:
    }

    public boolean b(String s)
    {
        return false;
    }

    public void c(String s)
    {
        g.setText(s);
        if(s != null)
            g.setClickable(true);
    }

    public boolean c()
    {
        boolean flag;
        if(f.d() > 1F)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void d()
    {
        f.c();
    }

    public void e()
    {
        f.b();
    }

    public void e(int i1)
    {
        if(j != i1)
        {
            if(f != null)
                f.a(1F);
            j = i1;
        }
    }

    public cls_a f()
    {
        return h;
    }

    public Bitmap g()
    {
        return f.g();
    }

    public void g(int i1)
    {
        if(h != null)
        {
            f.a(null, true, false);
            char c1 = '\u0103';
            if(j == k)
                c1 = '\u0104';
            m.setVisibility(0);
            b = false;
            q.setLength(0);
            com.nnee.p_img.cls_d.a().a(q, 0, h.b().toString(), new bo(this), -1, -1, c1, i);
        }
    }

    public void h(int i1)
    {
    }

    public boolean h()
    {
        boolean flag = true;
        if(m != null && m.getVisibility() == 0)
            flag = false;
        return flag;
    }

    public float i()
    {
        return f.d();
    }

    public void i(int i1)
    {
    }

    protected void onAttachedToWindow()
    {
        super.onAttachedToWindow();
    }

    protected void onDetachedFromWindow()
    {
        super.onDetachedFromWindow();
        if(f != null)
        {
            f.a(null, true, false);
            f = null;
        }
        if(h != null)
            h = null;
        o = null;
        p = null;
        e = null;
        if(l != null)
        {
            l.recycle();
            l = null;
        }
        if(m != null)
        {
            m.setVisibility(8);
            m = null;
        }
    }

    protected void onFinishInflate()
    {
        super.onFinishInflate();
        j();
    }

    public ViewGroup a;
    public boolean b;
    public boolean c;
    private final int d;
    private Context e;
    private ImageViewTouch f;
    private TextView g;
    private a h;
    private int i;
    private int j;
    private int k;
    private Bitmap l;
    private ProgressBar m;
    private s n;
    private Animation o;
    private Animation p;
    private StringBuilder q;
}
